package edu.westga.cs3152.wordmojo;

import java.awt.*;
import javax.swing.*;

public class TransparentButton extends JButton {

	private static final long serialVersionUID = -816790899590699236L;
	
	public TransparentButton(){
		super();
	}
	
	public void paint(Graphics g) {
		Graphics2D g2 = (Graphics2D) g.create();
		g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.0f)); 
		super.paint(g2);
		g2.dispose();
	}
}
